package com.angel.service.ServiceImpl;

import com.angel.bean.AcupuncturePoint;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.angel.bean.SysmptomDetail;
import com.angel.mapper.SysmptomDetailDao;
import com.angel.service.SysmptomDetailService;

@Service
public class SysmptomDetailServiceImpl implements SysmptomDetailService{

    @Resource
    private SysmptomDetailDao sysmptomDetailDao;

    @Override
    public int insert(SysmptomDetail sysmptomDetail){
        return sysmptomDetailDao.insert(sysmptomDetail);
    }

    @Override
    public int insertSelective(SysmptomDetail sysmptomDetail){
        return sysmptomDetailDao.insertSelective(sysmptomDetail);
    }

    @Override
    public int insertList(List<SysmptomDetail> sysmptomDetails){
        return sysmptomDetailDao.insertList(sysmptomDetails);
    }

    @Override
    public int update(SysmptomDetail sysmptomDetail){
        return sysmptomDetailDao.update(sysmptomDetail);
    }

    @Override
    public List<SysmptomDetail> findAll(SysmptomDetail sysmptomDetail) {
        return sysmptomDetailDao.findAll(sysmptomDetail);
    }

    @Override
    public SysmptomDetail findOne(SysmptomDetail sysmptomDetail) {
        List<SysmptomDetail> list = this.findAll(sysmptomDetail);
        if (list != null && list.size() > 0) {
            return list.get(0);
        }
        return null;
    }

    @Override
    public int deletOneId(SysmptomDetail sysmptomDetail) {
        return sysmptomDetailDao.deletOneId(sysmptomDetail);
    }
}
